<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="header" >
    <a  class="left-btn pointer" href="{$appkoudai}?m=koudai_category"><span class="iconfont icon-back"></span></a>
    <div class="title">口袋分类添加</div>
     
 </div>

 
<div class="main-body">
	<form id="form">
    	
        <input type="hidden" name="id" value="{$data.id}">
         
        <table class="table">
        	<tr><td width="100">名称：</td>
            <td>
        	<input type="text" name="title" placeholder="分类名称"  value="{$data.title}" class="txt">
        	</td>
            </tr>
        
        <tr><td>排序</td><td>
        	<input type="text" name="orderindex" placeholder="排序" value="{$data.orderindex}" class="txt">
        </td>
            </tr>
          <tr><td>状态：</td>
  <td>
  
  <input type='radio' name='status'  value='2' {if $data.status eq 2} checked{/if} > 显示
  <input type='radio' name='status'  value='4' {if $data.status neq 2} checked{/if} > 隐藏
  </td></tr>  
        <tr><td colspan="2">
       
        	<button type="button" class="btn  btn-success btn-row " id="submit">保存</button>
             
        </td>
            </tr>
        </table>    
        
    </form>

</div>
<script>
$(function(){
	$("#submit").on("click",function(data){
		$.post("{$appkoudai}?m=koudai_category&a=save&ajax=1",$("#form").serialize(),function(data){
			if(data.error){
				skyToast(data.message);
			}else{
				skyToast('保存成功');
			}
		})
	});
});

</script>
{include file="footer.html"}
</body>
</html>
